import dayjs from "dayjs";
import { transform } from "ol/proj";

const module = {
  name: "",
  contourPath: "http://139.9.243.34:8082/contour/",
  predictionContourPath: "http://139.9.243.34:8082/prediction_contour/",
  geoserver: "http://139.9.243.34:8060/geoserver/linhuo/wms"
};

const MapConfig = {
  tileLayers: [],
  view: {
    center: transform([111.017, 23.291], "EPSG:4326", "EPSG:3857"),
    zoom: 10,
    maxZoom: 18,
    minZoom: 9,
    fit: transform(
      [109.192307593, 22.176543039],
      "EPSG:4326",
      "EPSG:3857"
    ).concat(
      transform([113.343177962, 24.758628577], "EPSG:4326", "EPSG:3857")
    ),
    fitElement: "map"
  },
  control: {
    zoom: {
      show: true,
      duration: 250,
      zoomInTipLabel: "放大",
      zoomOutTipLabel: "缩小",
      delta: 1,
      position: {
        right: "30px",
        top: "140px",
        left: "auto",
        bottom: "auto"
      },
      backgroundColor: "#ffffff",
      color: "#999999",
      zoomStyle: "origin"
    }
  }
};

const TimeLineConfig = {
  controlStyle: {
    backgroundColor: "#5252fb",
    extra: [" border", "rounded-full", "border-purple-900", "leading-3"]
  },
  slider: {
    marks: true,
    height: "12px",
    lazy: true,
    useKeyboard: true,
    hideLabel: true,
    tooltip: "always",
    railStyle: {
      backgroundColor: "rgba(0,0,0,0.4)"
    },
    processStyle: {
      backgroundColor: "rgb(82,82,251)"
    },
    tooltipStyle: {
      backgroundColor: "rgb(82,82,251)",
      borderColor: "rgb(82,82,251)"
    },
    stepStyle: {
      backgroundColor: "rgba(255,255,255,0.4)",
      width: "1px",
      borderRadius: "none"
    },
    extra: ["leading-3"]
  },
  startDate: dayjs().format("YYYY-MM-DD"), // '2020-08-27'
  days: 10,
  dateFormat: "MM-DD",
  intervals: 1000
};

const MapToolConfig = {
  theme: "origin",
  content: [
    {
      title: "选择工具",
      key: "select",
      showRow: false,
      icon: `data:image/svg+xml,%3Csvg class='icon' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cpath d='M813.6 234.4h-23.5v-81.3c0-43-35-78-78-78h-398c-43 0-78 35-78 78v81.3h-23.5c-81.6 0-148 66.4-148 148v419c0 81.6 66.4 148 148 148h601c81.6 0 148-66.4 148-148v-419c0-81.7-66.4-148-148-148zm-521.5-81.3c0-12.1 9.9-22 22-22h398c12.1 0 22 9.9 22 22v81.3h-442v-81.3zM147.7 317.4c17.4-17.4 40.5-27 65-27h601c24.4 0 47.5 9.6 65 27 17.4 17.4 27 40.5 27 65v139.4H809v-25.6c0-32-26-58-58-58h-55c-32 0-58 26-58 58v25.6H388.3v-25.6c0-32-26-58-58-58h-55.1c-32 0-58 26-58 58v25.6h-96.6V382.4c0-24.5 9.6-47.6 27.1-65zM753 496.2v96.6c0 1-1 2-2 2h-55c-1 0-2-1-2-2v-96.6c0-1 1-2 2-2h55c1 0 2 1 2 2zm-420.7 0v96.6c0 1-1 2-2 2h-55.1c-1 0-2-1-2-2v-96.6c0-1 1-2 2-2h55.1c1 0 2 1 2 2zm546.3 370.1c-17.4 17.4-40.5 27-65 27h-601c-24.4 0-47.5-9.6-65-27-17.4-17.4-27-40.5-27-65V577.8h96.6v15.1c0 32 26 58 58 58h55.1c32 0 58-26 58-58v-15.1H638v15.1c0 32 26 58 58 58h55c32 0 58-26 58-58v-15.1h96.6v223.6c0 24.4-9.6 47.5-27 64.9z' fill='%23888787'/%3E%3C/svg%3E`,
      iconSwitch: `data:image/svg+xml,%3Csvg class='icon' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cpath d='M813.6 234.4h-23.5v-81.3c0-43-35-78-78-78h-398c-43 0-78 35-78 78v81.3h-23.5c-81.6 0-148 66.4-148 148v419c0 81.6 66.4 148 148 148h601c81.6 0 148-66.4 148-148v-419c0-81.7-66.4-148-148-148zm-521.5-81.3c0-12.1 9.9-22 22-22h398c12.1 0 22 9.9 22 22v81.3h-442v-81.3zM147.7 317.4c17.4-17.4 40.5-27 65-27h601c24.4 0 47.5 9.6 65 27 17.4 17.4 27 40.5 27 65v139.4H809v-25.6c0-32-26-58-58-58h-55c-32 0-58 26-58 58v25.6H388.3v-25.6c0-32-26-58-58-58h-55.1c-32 0-58 26-58 58v25.6h-96.6V382.4c0-24.5 9.6-47.6 27.1-65zM753 496.2v96.6c0 1-1 2-2 2h-55c-1 0-2-1-2-2v-96.6c0-1 1-2 2-2h55c1 0 2 1 2 2zm-420.7 0v96.6c0 1-1 2-2 2h-55.1c-1 0-2-1-2-2v-96.6c0-1 1-2 2-2h55.1c1 0 2 1 2 2zm546.3 370.1c-17.4 17.4-40.5 27-65 27h-601c-24.4 0-47.5-9.6-65-27-17.4-17.4-27-40.5-27-65V577.8h96.6v15.1c0 32 26 58 58 58h55.1c32 0 58-26 58-58v-15.1H638v15.1c0 32 26 58 58 58h55c32 0 58-26 58-58v-15.1h96.6v223.6c0 24.4-9.6 47.5-27 64.9z' fill='%236060FB'/%3E%3C/svg%3E`,
      row: [
        {
          render: `<div class="rowTool" @click="clickHandler"><svg class='pic' t="1638957529452" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="20869" width="200" height="200"><path d="M810.666667 213.333333h128v85.333334h-128v128h-85.333334V298.666667h-128V213.333333h128V85.333333h85.333334v128m-85.333334 597.333334v-256h85.333334v341.333333H128V213.333333h341.333333v85.333334H213.333333v512h512z" fill="#666464" p-id="20870"></path></svg><span class='spanText'>矩形</span></div>`,
          // render: `<div class="rowTool"><img class='pic' src="data:image/svg+xml,%3Csvg class='icon' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cpath d='M1007.218 247.58L771.584 12.06a39.708 39.708 0 0 0-56.15 0L12.005 715.378a39.708 39.708 0 0 0 0 56.15l235.633 235.576a39.708 39.708 0 0 0 56.15 0l703.43-703.317a39.708 39.708 0 0 0 0-56.207zM275.684 922.908L96.256 743.538l45.17-45.17 30.72 30.72a39.708 39.708 0 1 0 56.206-56.092l-30.72-30.72 45.17-45.227 30.72 30.72a39.708 39.708 0 1 0 56.15-56.15l-30.72-30.72 45.169-45.17 30.72 30.72a39.708 39.708 0 1 0 56.206-56.149l-30.72-30.72 45.113-45.226 30.72 30.72a39.708 39.708 0 1 0 56.206-56.093l-30.72-30.72 45.17-45.226 30.72 30.72a39.708 39.708 0 1 0 56.15-56.15l-30.72-30.72 45.17-45.17 30.72 30.72a39.708 39.708 0 1 0 56.148-56.149l-30.72-30.72 39.254-39.253L922.965 275.74 275.684 922.908z' fill='%237d7b7b'/%3E%3C/svg%3E"></img><span class='spanText'>矩形</span></div>`,
          key: "rectangle",
          show: false
        },
        {
          render: `<div class="rowTool" @click="clickHandler"><svg class='pic' t="1638957480448" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="20668" width="200" height="200"><path d="M469.333333 810.666667a256 256 0 0 0 256-256h85.333334a341.333333 341.333333 0 0 1-341.333334 341.333333 341.333333 341.333333 0 0 1-341.333333-341.333333 341.333333 341.333333 0 0 1 341.333333-341.333334v85.333334a256 256 0 0 0-256 256 256 256 0 0 0 256 256m341.333334-597.333334h128v85.333334h-128v128h-85.333334V298.666667h-128V213.333333h128V85.333333h85.333334v128z" fill="#666464" p-id="20669"></path></svg><span class='spanText'>圆</span></div>`,
          // render: `<div class="rowTool" @click="clickHandler"><img class='pic' src="data:image/svg+xml,%3Csvg class='icon' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cpath d='M98 111.1v155.6c0 7.2 5.8 13 13 13h155.6c7.2 0 13-5.8 13-13V111.1c0-7.2-5.8-13-13-13H111c-7.2.1-13 5.9-13 13zm142.7 129.7H136.9V137.1h103.7v103.7zm505.7-129.7v155.6c0 7.2 5.8 13 13 13H915c7.2 0 13-5.8 13-13V111.1c0-7.2-5.8-13-13-13H759.4c-7.2.1-13 5.9-13 13zm142.7 129.7H785.3V137.1H889v103.7zM746.4 759.6v155.6c0 7.2 5.8 13 13 13H915c7.2 0 13-5.8 13-13V759.6c0-7.2-5.8-13-13-13H759.4c-7.2 0-13 5.8-13 13zm142.7 129.6H785.3V785.5H889v103.7zM98 759.6v155.6c0 7.2 5.8 13 13 13h155.6c7.2 0 13-5.8 13-13V759.6c0-7.2-5.8-13-13-13H111c-7.2 0-13 5.8-13 13zm142.7 129.6H136.9V785.5h103.7v103.7zm444.9-165.8L300.4 338.3c-10.1-10.1-10.1-26.6 0-36.7 10.1-10.1 26.6-10.1 36.7 0l385.2 385.2c10.1 10.1 10.1 26.6 0 36.7-10.2 10-26.6 10-36.7-.1zM156.8 279.7h64v466.9h-64z' fill='%23666464'/%3E%3Cpath d='M279.6 156.9h466.9v64H279.6zm0 648.5h466.9v64H279.6zm525.6-525.7h64v466.9h-64z' fill='%23666464'/%3E%3C/svg%3E"/><span class='spanText'>圆</span></div>`,
          key: "circle",
          show: false
        },
        {
          render: `<div class="rowTool"><svg class='pic' t="1638957555094" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="21070" width="200" height="200"><path d="M725.333333 669.866667V554.666667h85.333334v170.666666l-384 170.666667-298.666667-298.666667 170.666667-384h170.666666v85.333334H354.133333l-123.733333 281.6 213.333333 213.333333 281.6-123.733333M938.666667 213.333333v85.333334h-128v128h-85.333334V298.666667h-128V213.333333h128V85.333333h85.333334v128h128z" fill="#666464" p-id="21071"></path></svg><span class='spanText'>多边形</span></div>`,
          // render: `<div class="rowTool"><img class='pic' src="data:image/svg+xml,%3Csvg class='icon' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cpath d='M650.388 162.137c-6.723-6.832-17.57-6.832-24.303 0L80.111 720.94c-6.7 6.892-6.7 18.033 0 24.925l106.174 108.653c8.121 7.46 18.487 11.857 29.376 12.469h340.197c9.448 0 22.664-5.593 29.382-12.469l358.644-367.093c6.707-6.892 6.707-18.039 0-24.93L650.388 162.136zm-98.905 626.097c-8.137 7.466-18.525 11.868-29.436 12.463H258.702c-10.895-.612-21.26-5.008-29.382-12.463l-50.026-51.26c-6.711-6.887-6.711-18.028 0-24.92l200.11-204.844c6.728-6.864 17.617-6.864 24.357 0l198.95 203.664c6.674 6.893 6.674 17.99 0 24.877l-51.228 52.483zm0 0' fill='%23666464'/%3E%3C/svg%3E"></img><span class='spanText'>多边形</span></div>`,
          key: "polygon",
          show: false
        },
        {
          render: `<div class="rowTool"><img class='pic' src="data:image/svg+xml,%3Csvg class='icon' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cpath d='M650.388 162.137c-6.723-6.832-17.57-6.832-24.303 0L80.111 720.94c-6.7 6.892-6.7 18.033 0 24.925l106.174 108.653c8.121 7.46 18.487 11.857 29.376 12.469h340.197c9.448 0 22.664-5.593 29.382-12.469l358.644-367.093c6.707-6.892 6.707-18.039 0-24.93L650.388 162.136zm-98.905 626.097c-8.137 7.466-18.525 11.868-29.436 12.463H258.702c-10.895-.612-21.26-5.008-29.382-12.463l-50.026-51.26c-6.711-6.887-6.711-18.028 0-24.92l200.11-204.844c6.728-6.864 17.617-6.864 24.357 0l198.95 203.664c6.674 6.893 6.674 17.99 0 24.877l-51.228 52.483zm0 0' fill='%23666464'/%3E%3C/svg%3E"></img><span class='spanText'>清除</span></div>`,
          key: "clean",
          show: false
        }
      ]
    },
    {
      title: "地图切换",
      key: "switch",
      showRow: false,
      icon: `data:image/svg+xml,%3Csvg class='icon' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cpath d='M36.4 479.8c-1.4 0-2.8-.1-4.3-.3-17.5-2.3-29.9-18.4-27.6-36.1 16.3-121.9 76.3-233.9 169-315.7C267 45.4 387.2 0 512.1 0 636.8 0 757 45.4 850.5 127.9c42.1 37.2 77.5 80.6 105.1 128.4v-65.4c0-17.7 14.3-32.1 32.1-32.1 17.7 0 32.1 14.3 32.1 32.1v257c0 16.8-13.1 30.9-30 32-16.8 1.1-31.7-11-33.9-27.8-29.6-221.2-220.4-388-443.8-388S97.8 230.9 68.2 452.1c-2.2 16-15.9 27.7-31.8 27.7zM512.1 1024c-124.9 0-245.1-45.4-338.6-128-42.1-37.2-77.5-80.6-105-128.3v64.4c0 17.7-14.3 32.1-32.1 32.1s-32.1-14.3-32.1-32V575.8c0-16.9 13.1-30.9 30-32 16.8-1.1 31.7 11 33.9 27.8 29.5 221.3 220.3 388.2 444 388.2 223.6 0 414.5-166.9 443.9-388.1 2.3-17.5 18.4-29.9 36-27.6 17.5 2.3 29.9 18.4 27.6 36-16.2 122-76.2 234.1-168.9 315.9-93.7 82.5-214.1 128-338.7 128z' fill='%23888787'/%3E%3Cpath d='M214.79999999999998 512a64.1 64.1 0 1 0 128.2 0 64.1 64.1 0 1 0-128.2 0zM809.2 546.3h-383c-17.7 0-32.1-14.3-32.1-32.1 0-17.7 14.3-32.1 32.1-32.1h383c17.7 0 32.1 14.3 32.1 32.1 0 17.7-14.4 32.1-32.1 32.1z' fill='%23888787'/%3E%3C/svg%3E`,
      iconSwitch: `data:image/svg+xml,%3Csvg class='icon' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cpath d='M36.4 479.8c-1.4 0-2.8-.1-4.3-.3-17.5-2.3-29.9-18.4-27.6-36.1 16.3-121.9 76.3-233.9 169-315.7C267 45.4 387.2 0 512.1 0 636.8 0 757 45.4 850.5 127.9c42.1 37.2 77.5 80.6 105.1 128.4v-65.4c0-17.7 14.3-32.1 32.1-32.1 17.7 0 32.1 14.3 32.1 32.1v257c0 16.8-13.1 30.9-30 32-16.8 1.1-31.7-11-33.9-27.8-29.6-221.2-220.4-388-443.8-388S97.8 230.9 68.2 452.1c-2.2 16-15.9 27.7-31.8 27.7zM512.1 1024c-124.9 0-245.1-45.4-338.6-128-42.1-37.2-77.5-80.6-105-128.3v64.4c0 17.7-14.3 32.1-32.1 32.1s-32.1-14.3-32.1-32V575.8c0-16.9 13.1-30.9 30-32 16.8-1.1 31.7 11 33.9 27.8 29.5 221.3 220.3 388.2 444 388.2 223.6 0 414.5-166.9 443.9-388.1 2.3-17.5 18.4-29.9 36-27.6 17.5 2.3 29.9 18.4 27.6 36-16.2 122-76.2 234.1-168.9 315.9-93.7 82.5-214.1 128-338.7 128z' fill='%236060FB'/%3E%3Cpath d='M214.79999999999998 512a64.1 64.1 0 1 0 128.2 0 64.1 64.1 0 1 0-128.2 0zM809.2 546.3h-383c-17.7 0-32.1-14.3-32.1-32.1 0-17.7 14.3-32.1 32.1-32.1h383c17.7 0 32.1 14.3 32.1 32.1 0 17.7-14.4 32.1-32.1 32.1z' fill='%236060FB'/%3E%3C/svg%3E`,
      row: []
    },
    {
      title: "小工具",
      key: "tool",
      showRow: false,
      icon: `data:image/svg+xml,%3Csvg class='icon' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cpath d='M813.6 234.4h-23.5v-81.3c0-43-35-78-78-78h-398c-43 0-78 35-78 78v81.3h-23.5c-81.6 0-148 66.4-148 148v419c0 81.6 66.4 148 148 148h601c81.6 0 148-66.4 148-148v-419c0-81.7-66.4-148-148-148zm-521.5-81.3c0-12.1 9.9-22 22-22h398c12.1 0 22 9.9 22 22v81.3h-442v-81.3zM147.7 317.4c17.4-17.4 40.5-27 65-27h601c24.4 0 47.5 9.6 65 27 17.4 17.4 27 40.5 27 65v139.4H809v-25.6c0-32-26-58-58-58h-55c-32 0-58 26-58 58v25.6H388.3v-25.6c0-32-26-58-58-58h-55.1c-32 0-58 26-58 58v25.6h-96.6V382.4c0-24.5 9.6-47.6 27.1-65zM753 496.2v96.6c0 1-1 2-2 2h-55c-1 0-2-1-2-2v-96.6c0-1 1-2 2-2h55c1 0 2 1 2 2zm-420.7 0v96.6c0 1-1 2-2 2h-55.1c-1 0-2-1-2-2v-96.6c0-1 1-2 2-2h55.1c1 0 2 1 2 2zm546.3 370.1c-17.4 17.4-40.5 27-65 27h-601c-24.4 0-47.5-9.6-65-27-17.4-17.4-27-40.5-27-65V577.8h96.6v15.1c0 32 26 58 58 58h55.1c32 0 58-26 58-58v-15.1H638v15.1c0 32 26 58 58 58h55c32 0 58-26 58-58v-15.1h96.6v223.6c0 24.4-9.6 47.5-27 64.9z' fill='%23888787'/%3E%3C/svg%3E`,
      iconSwitch: `data:image/svg+xml,%3Csvg class='icon' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cpath d='M813.6 234.4h-23.5v-81.3c0-43-35-78-78-78h-398c-43 0-78 35-78 78v81.3h-23.5c-81.6 0-148 66.4-148 148v419c0 81.6 66.4 148 148 148h601c81.6 0 148-66.4 148-148v-419c0-81.7-66.4-148-148-148zm-521.5-81.3c0-12.1 9.9-22 22-22h398c12.1 0 22 9.9 22 22v81.3h-442v-81.3zM147.7 317.4c17.4-17.4 40.5-27 65-27h601c24.4 0 47.5 9.6 65 27 17.4 17.4 27 40.5 27 65v139.4H809v-25.6c0-32-26-58-58-58h-55c-32 0-58 26-58 58v25.6H388.3v-25.6c0-32-26-58-58-58h-55.1c-32 0-58 26-58 58v25.6h-96.6V382.4c0-24.5 9.6-47.6 27.1-65zM753 496.2v96.6c0 1-1 2-2 2h-55c-1 0-2-1-2-2v-96.6c0-1 1-2 2-2h55c1 0 2 1 2 2zm-420.7 0v96.6c0 1-1 2-2 2h-55.1c-1 0-2-1-2-2v-96.6c0-1 1-2 2-2h55.1c1 0 2 1 2 2zm546.3 370.1c-17.4 17.4-40.5 27-65 27h-601c-24.4 0-47.5-9.6-65-27-17.4-17.4-27-40.5-27-65V577.8h96.6v15.1c0 32 26 58 58 58h55.1c32 0 58-26 58-58v-15.1H638v15.1c0 32 26 58 58 58h55c32 0 58-26 58-58v-15.1h96.6v223.6c0 24.4-9.6 47.5-27 64.9z' fill='%236060FB'/%3E%3C/svg%3E`,
      row: [
        {
          render: `<div class="rowTool"><img class='pic' src="data:image/svg+xml,%3Csvg class='icon' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cpath d='M1007.218 247.58L771.584 12.06a39.708 39.708 0 0 0-56.15 0L12.005 715.378a39.708 39.708 0 0 0 0 56.15l235.633 235.576a39.708 39.708 0 0 0 56.15 0l703.43-703.317a39.708 39.708 0 0 0 0-56.207zM275.684 922.908L96.256 743.538l45.17-45.17 30.72 30.72a39.708 39.708 0 1 0 56.206-56.092l-30.72-30.72 45.17-45.227 30.72 30.72a39.708 39.708 0 1 0 56.15-56.15l-30.72-30.72 45.169-45.17 30.72 30.72a39.708 39.708 0 1 0 56.206-56.149l-30.72-30.72 45.113-45.226 30.72 30.72a39.708 39.708 0 1 0 56.206-56.093l-30.72-30.72 45.17-45.226 30.72 30.72a39.708 39.708 0 1 0 56.15-56.15l-30.72-30.72 45.17-45.17 30.72 30.72a39.708 39.708 0 1 0 56.148-56.149l-30.72-30.72 39.254-39.253L922.965 275.74 275.684 922.908z' fill='%237d7b7b'/%3E%3C/svg%3E"></img><span class='spanText'>测距</span></div>`,
          key: "ranging",
          show: false
        },
        {
          render: `<div class="rowTool" @click="clickHandler"><img class='pic' src="data:image/svg+xml,%3Csvg class='icon' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cpath d='M98 111.1v155.6c0 7.2 5.8 13 13 13h155.6c7.2 0 13-5.8 13-13V111.1c0-7.2-5.8-13-13-13H111c-7.2.1-13 5.9-13 13zm142.7 129.7H136.9V137.1h103.7v103.7zm505.7-129.7v155.6c0 7.2 5.8 13 13 13H915c7.2 0 13-5.8 13-13V111.1c0-7.2-5.8-13-13-13H759.4c-7.2.1-13 5.9-13 13zm142.7 129.7H785.3V137.1H889v103.7zM746.4 759.6v155.6c0 7.2 5.8 13 13 13H915c7.2 0 13-5.8 13-13V759.6c0-7.2-5.8-13-13-13H759.4c-7.2 0-13 5.8-13 13zm142.7 129.6H785.3V785.5H889v103.7zM98 759.6v155.6c0 7.2 5.8 13 13 13h155.6c7.2 0 13-5.8 13-13V759.6c0-7.2-5.8-13-13-13H111c-7.2 0-13 5.8-13 13zm142.7 129.6H136.9V785.5h103.7v103.7zm444.9-165.8L300.4 338.3c-10.1-10.1-10.1-26.6 0-36.7 10.1-10.1 26.6-10.1 36.7 0l385.2 385.2c10.1 10.1 10.1 26.6 0 36.7-10.2 10-26.6 10-36.7-.1zM156.8 279.7h64v466.9h-64z' fill='%23666464'/%3E%3Cpath d='M279.6 156.9h466.9v64H279.6zm0 648.5h466.9v64H279.6zm525.6-525.7h64v466.9h-64z' fill='%23666464'/%3E%3C/svg%3E"/><span class='spanText'>测面</span></div>`,
          key: "surface",
          show: false
        },
        {
          render: `<div class="rowTool"><img class='pic' src="data:image/svg+xml,%3Csvg class='icon' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cpath d='M650.388 162.137c-6.723-6.832-17.57-6.832-24.303 0L80.111 720.94c-6.7 6.892-6.7 18.033 0 24.925l106.174 108.653c8.121 7.46 18.487 11.857 29.376 12.469h340.197c9.448 0 22.664-5.593 29.382-12.469l358.644-367.093c6.707-6.892 6.707-18.039 0-24.93L650.388 162.136zm-98.905 626.097c-8.137 7.466-18.525 11.868-29.436 12.463H258.702c-10.895-.612-21.26-5.008-29.382-12.463l-50.026-51.26c-6.711-6.887-6.711-18.028 0-24.92l200.11-204.844c6.728-6.864 17.617-6.864 24.357 0l198.95 203.664c6.674 6.893 6.674 17.99 0 24.877l-51.228 52.483zm0 0' fill='%23666464'/%3E%3C/svg%3E"></img><span class='spanText'>清除</span></div>`,
          key: "clear",
          show: false
        }
      ]
    }
  ]
};

const ChartConfig = {
  options: [
    {
      type: "fwi",
      text: "天气指数",
      unit: "",
      active: true
    },
    {
      type: "tem",
      text: "日最高温度",
      unit: "°",
      active: false
    },
    {
      type: "wind",
      text: "日平均风速",
      unit: "km/h",
      active: false
    },
    {
      type: "pre",
      text: "日累计降水",
      unit: "mm",
      active: false
    },
    {
      type: "bui",
      text: "累积指数",
      unit: "",
      active: false
    },
    {
      type: "dc",
      text: "干旱码",
      unit: "",
      active: false
    },
    {
      type: "dmc",
      text: "粗腐殖质湿度码",
      unit: "",
      active: false
    },
    {
      type: "isi",
      text: "初始蔓延指数",
      unit: "",
      active: false
    },
    {
      type: "ffmc",
      text: "细小可燃物湿度码",
      unit: "",
      active: false
    },
    {
      type: "ffdi_index",
      text: "布龙-戴维斯指数",
      unit: "",
      active: false
    },
    {
      type: "kbdi",
      text: "KBDI",
      unit: "",
      active: false
    },
    {
      type: "ffdi",
      text: "FFDI",
      unit: "",
      active: false
    }
  ]
};

const PopLayerConfig = {
  msg: {
    rangeErrorr: `<img class="msgpic" src="data:image/svg+xml,%3Csvg class='icon' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cpath d='M1024 512C1024 229.23 794.77 0 512 0S0 229.23 0 512s229.23 512 512 512c117.41 0 228.826-39.669 318.768-111.313 10.79-8.595 12.569-24.308 3.975-35.097-8.594-10.789-24.308-12.568-35.097-3.974C718.47 938.277 618.002 974.049 512 974.049 256.818 974.049 49.951 767.182 49.951 512S256.818 49.951 512 49.951 974.049 256.818 974.049 512c0 87.493-24.334 171.337-69.578 243.96-7.294 11.708-3.716 27.112 7.992 34.405 11.707 7.294 27.11 3.716 34.405-7.991C997.014 701.88 1024 608.898 1024 512zm-686.83-12.488c34.485 0 62.44-27.955 62.44-62.439s-27.955-62.439-62.44-62.439c-34.483 0-62.438 27.955-62.438 62.44 0 34.483 27.955 62.438 62.439 62.438zm374.635 0c34.484 0 62.439-27.955 62.439-62.439s-27.955-62.439-62.44-62.439c-34.483 0-62.438 27.955-62.438 62.44 0 34.483 27.955 62.438 62.439 62.438zM352.788 704.785c43.377-34.702 100.364-55.425 171.7-55.425 71.336 0 128.322 20.723 171.7 55.425 26.513 21.21 42.695 42.786 50.444 58.284 6.168 12.337 1.168 27.34-11.17 33.508-12.337 6.169-27.34 1.168-33.508-11.17-.918-1.834-3.462-6.024-7.788-11.793-7.564-10.084-17.239-20.269-29.183-29.824-34.671-27.737-80.71-44.478-140.495-44.478-59.786 0-105.824 16.74-140.496 44.478-11.944 9.555-21.619 19.74-29.182 29.824-4.327 5.769-6.87 9.959-7.788 11.794-6.169 12.337-21.171 17.338-33.509 11.17-12.337-6.17-17.338-21.172-11.169-33.509 7.75-15.498 23.931-37.074 50.444-58.284z' fill='%23fa8d75'/%3E%3C/svg%3E"/><span class="msgspan">超出范围</span>`,
    questError: `<img class="msgpic" src="data:image/svg+xml,%3Csvg class='icon' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cpath d='M1024 512C1024 229.23 794.77 0 512 0S0 229.23 0 512s229.23 512 512 512c117.41 0 228.826-39.669 318.768-111.313 10.79-8.595 12.569-24.308 3.975-35.097-8.594-10.789-24.308-12.568-35.097-3.974C718.47 938.277 618.002 974.049 512 974.049 256.818 974.049 49.951 767.182 49.951 512S256.818 49.951 512 49.951 974.049 256.818 974.049 512c0 87.493-24.334 171.337-69.578 243.96-7.294 11.708-3.716 27.112 7.992 34.405 11.707 7.294 27.11 3.716 34.405-7.991C997.014 701.88 1024 608.898 1024 512zm-686.83-12.488c34.485 0 62.44-27.955 62.44-62.439s-27.955-62.439-62.44-62.439c-34.483 0-62.438 27.955-62.438 62.44 0 34.483 27.955 62.438 62.439 62.438zm374.635 0c34.484 0 62.439-27.955 62.439-62.439s-27.955-62.439-62.44-62.439c-34.483 0-62.438 27.955-62.438 62.44 0 34.483 27.955 62.438 62.439 62.438zM352.788 704.785c43.377-34.702 100.364-55.425 171.7-55.425 71.336 0 128.322 20.723 171.7 55.425 26.513 21.21 42.695 42.786 50.444 58.284 6.168 12.337 1.168 27.34-11.17 33.508-12.337 6.169-27.34 1.168-33.508-11.17-.918-1.834-3.462-6.024-7.788-11.793-7.564-10.084-17.239-20.269-29.183-29.824-34.671-27.737-80.71-44.478-140.495-44.478-59.786 0-105.824 16.74-140.496 44.478-11.944 9.555-21.619 19.74-29.182 29.824-4.327 5.769-6.87 9.959-7.788 11.794-6.169 12.337-21.171 17.338-33.509 11.17-12.337-6.17-17.338-21.172-11.169-33.509 7.75-15.498 23.931-37.074 50.444-58.284z' fill='%23fa8d75'/%3E%3C/svg%3E"/><span class="msgspan">请求出错</span>`
  }
};

const BaseMapConfig = [
  {
    sourceType: "xyz",
    sourceUrl:
      "http://t3.tianditu.com/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=6e9650f48c0a7f5212f2243a4af7f14b",
    crossOrigin: "Anonymous",
    title: "3857_vec",
    zIndex: 0,
    visible: true
  },
  {
    sourceType: "xyz",
    sourceUrl:
      "http://t3.tianditu.com/DataServer?T=img_w&x={x}&y={y}&l={z}&tk=6e9650f48c0a7f5212f2243a4af7f14b",
    crossOrigin: "Anonymous",
    title: "3857_img",
    zIndex: 0,
    visible: false
  },
  {
    sourceType: "xyz",
    sourceUrl:
      "http://t3.tianditu.com/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=6e9650f48c0a7f5212f2243a4af7f14b",
    crossOrigin: "Anonymous",
    title: "3857_cva",
    zIndex: 0,
    visible: true
  }
];
export {
  TimeLineConfig,
  module,
  MapConfig,
  ChartConfig,
  MapToolConfig,
  PopLayerConfig,
  BaseMapConfig
};
